var MSEventsInterfacePresent = false;
var canvas;